using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using WindowsPhoneGame1.GamePlayStates;

namespace WindowsPhoneGame1.GameScreens
{
    class GamePlayScreen : Screen
    {
        private Level level;
        private int worldNr, levelNr;

        public GamePlayScreen(Game1 game, int worldNr, int levelNr) : base(game)
        {
            NUMBER_OF_BUTTONS = 0;
            this.worldNr = worldNr;
            this.levelNr = levelNr;
        }

        public override void Initialize()
        {
            // call this first!
            base.Initialize();

            level = new Level(game, worldNr, levelNr);
        }

        public override void LoadContent()
        {
            level.LoadContent();
        }

        public override void UnloadContent()
        {
            level.UnloadContent();
        }

        public override void Update(GameTime gameTime)
        {
            level.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            game.GraphicsDevice.Clear(background_color);
            level.Draw(gameTime);
            base.Draw(gameTime);
        }
    }
}
